package com.whfc.ms.api.md.service.impl;

import com.whfc.emp.dto.AppBoardEmpAnalysisDTO;
import com.whfc.emp.dto.AppEmpBoardRecordAnalysisDTO;
import com.whfc.emp.service.AppEmpBoardService;
import com.whfc.ms.api.md.service.MdEmpBoardService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author: hw
 * @date: 2021-11-18 15:52
 * @description: 人员大屏
 */
@Service
public class MdEmpBoardServiceImpl implements MdEmpBoardService {

    @DubboReference(interfaceClass = AppEmpBoardService.class, version = "1.0.0")
    private AppEmpBoardService appEmpBoardService;

    @Override
    public AppBoardEmpAnalysisDTO empAnalysis(Integer deptId, Date startDate, Date endDate) {
        return appEmpBoardService.empAnalysis(deptId, startDate, endDate);
    }

    @Override
    public AppEmpBoardRecordAnalysisDTO empRecordAnalysis(Integer deptId, Date startDate, Date endDate) {
        return appEmpBoardService.empRecordAnalysis(deptId, startDate, endDate);
    }

    @Override
    public AppEmpBoardRecordAnalysisDTO empRecordAnalysis2(Integer deptId, Date startDate, Date endDate) {
        return appEmpBoardService.empRecordAnalysis2(deptId, startDate, endDate);
    }
}
